mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-07-11 18:57:08 +10:00
Fix directory ending up in /tmp
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
PreviousWD=$(pwd)
|
||||||
skip_watermark=false
|
skip_watermark=false
|
||||||
if [ "$1" = "--skip-watermark" ]; then
|
if [ "$1" = "--skip-watermark" ]; then
|
||||||
skip_watermark=true
|
skip_watermark=true
|
||||||
@@ -185,6 +186,7 @@ for selection in $CHOICE; do
|
|||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
exit 1 # exit with an error
|
exit 1 # exit with an error
|
||||||
fi
|
fi
|
||||||
|
cd $PreviousWD
|
||||||
rm -rf /tmp/yay_install
|
rm -rf /tmp/yay_install
|
||||||
else
|
else
|
||||||
echo "Yay is already installed."
|
echo "Yay is already installed."
|
||||||
|
|||||||
Reference in New Issue
Block a user