diff --git a/scripts/backup.sh b/scripts/backup.sh index c329534..e62fb6e 100644 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -67,7 +67,7 @@ backup_dwc2(){ get_date status_msg "Timestamp: $current_date" mkdir -p $BACKUP_DIR/dwc2-backups/"$current_date" - cp -r $DWC2FK_DIR $_ && $DWC2_DIR $_ + cp -r $DWC2FK_DIR $_ && cp -r $DWC2_DIR $_ ok_msg "Backup complete!" else ERROR_MSG=" Can't backup dwc2-for-klipper and/or dwc2 directory!\n Not found!" diff --git a/scripts/update.sh b/scripts/update.sh index 2eefde1..d2daa1b 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -51,7 +51,7 @@ update_dwc2(){ bb4u "dwc2" #check dependencies dep=(wget gzip tar curl) - dep_check + dependency_check #execute operation GET_DWC2_URL=`curl -s https://api.github.com/repositories/28820678/releases/latest | grep browser_download_url | cut -d'"' -f4` if [ ! -d $DWC2_DIR/web ]; then