12 lines
252 B
Bash
Executable File
12 lines
252 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ZIP_FILE=$1
|
|
TARGET_FOLDER=$2
|
|
|
|
CURRENT_TIMESTAMP=$(date +%s)
|
|
|
|
TARGET_FOLDER_BASENAME=$(basename $TARGET_FOLDER)
|
|
cp --recursive $TARGET_FOLDER $TARGET_FOLDER/../$TARGET_FOLDER_DIRNAME-$CURRENT_TIMESTAMP
|
|
|
|
unzip -o -d $TARGET_FOLDER $ZIP_FILE
|