Fix mkdir in reset
This commit is contained in:
parent
6f1205c306
commit
2c664f3c06
2 changed files with 2 additions and 2 deletions
2
pms-cli
2
pms-cli
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# CONSTANTS
|
# CONSTANTS
|
||||||
readonly PKGVER="0.2.1"
|
readonly PKGVER="0.2.2"
|
||||||
readonly LICENSE="GNU AGPLv3"
|
readonly LICENSE="GNU AGPLv3"
|
||||||
readonly ROOTPATH="$(dirname $(readlink -f $(which $0)))"
|
readonly ROOTPATH="$(dirname $(readlink -f $(which $0)))"
|
||||||
readonly TEMPLATEDIR="${ROOTPATH}/.template"
|
readonly TEMPLATEDIR="${ROOTPATH}/.template"
|
||||||
|
|
|
@ -34,7 +34,7 @@ function reset() {
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf "$dir/data"
|
rm -rf "$dir/data"
|
||||||
mkdir "$dir/data/world/datapacks"
|
mkdir -p "$dir/data/world/datapacks"
|
||||||
|
|
||||||
if [[ "$backedup" == true ]]; then
|
if [[ "$backedup" == true ]]; then
|
||||||
while [[ ! $restoreDatapacksAns =~ [YyNn] ]]; do
|
while [[ ! $restoreDatapacksAns =~ [YyNn] ]]; do
|
||||||
|
|
Loading…
Reference in a new issue