Skip to content

Commit

Permalink
fixes for directories containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed Feb 11, 2023
1 parent e44ee50 commit 0a681d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

# Load Inquirer.sh
source $DIR/inquirer-sh/list_input.sh
source $DIR/inquirer-sh/text_input.sh
source "$DIR/inquirer-sh/list_input.sh"
source "$DIR/inquirer-sh/text_input.sh"
# ---

# Load all functions in ./functions
for f in $DIR/functions/*; do source "$f"; done
for f in "$DIR"/functions/*; do source "$f"; done

check_adb_connection

Expand Down
2 changes: 1 addition & 1 deletion functions/backup_func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function backup_func() {
sleep 4

# Copy backup_archive_info.txt to the archive
cp $DIR/extras/backup_archive_info.txt ./backup-tmp/PLEASE_READ.txt
cp "$DIR/extras/backup_archive_info.txt" ./backup-tmp/PLEASE_READ.txt
echo "$APP_VERSION" > ./backup-tmp/version.txt

# Compress
Expand Down
2 changes: 1 addition & 1 deletion windows-dependencies/env-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export ADB_DIR=$(pwd)/windows-dependencies/adb/adb.exe

adb() {
$ADB_DIR "$@"
"$ADB_DIR" "$@"
}
export -f adb

Expand Down

0 comments on commit 0a681d0

Please sign in to comment.